/**
 * 
 */
package com.jiang.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Administrator
 * @获取项目绝对路径
 */
public class BasePathUtils {

	public static String getBasePath(HttpServletRequest request) {
		String path = request.getContextPath();
		String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path
				+ "/";
		return basePath;
	}

}
